package com.smile67.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smile67.pojo.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author smile67
 * @since 2023-09-05
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 根据用户名查询员工
     *
     * @param username
     * @return
     */
    @Select("select * from ag_ai_ms.table_employee where user_name = #{username} ")
    Employee getByUsername(String username);
}
